<template></template>
<!-- 加载地图文档 -->

<script setup>
import { docLayer } from './Hooks/useGuangguMap'
const map = ref()
var source = ref()
var draw = ref(null)

onMounted(() => {
  //初始化地图
  map.value = useGlobalMap()
  // console.log(map.value)
  //加载地图文档
  map.value.addLayer(docLayer)
  //创建画布
  source.value = new ol.source.Vector({})
  var layer = new ol.layer.Vector({
    source: source.value,
  })
  map.value.addLayer(layer)
})
</script>

<style scoped></style>
